package com.aiit.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: LuTao
 * @Date: 2022/04/28/14:18
 */
@Controller
public class ViewController {
    @RequestMapping(value = "/login",method = RequestMethod.GET)
    public String login(){
        return "/login";
    }

    @RequestMapping("register")
    public String register(){
        return "/register";
    }
    @RequestMapping("/index.html")
    public String index(){
        return "/index";
    }
    @RequestMapping("/user_add")
    public String user_add(){
        return "/usertable/user_add";
    }
    @RequestMapping("/department_add")
    public String department_add(){
        return "/departmenttable/department_add";
    }
    @RequestMapping("/post_add")
    public String post_add(){
        return "/posttable/post_add";
    }

}
